package net.zjitc.service.impl;

import net.zjitc.dao.CategorySecondDao;
import net.zjitc.dao.impl.CategorySecondDaoImpl;
import net.zjitc.pojo.CategorySecond;
import net.zjitc.service.CategorySecondService;

import java.util.List;

/**
 * Created by Administrator on 2017/11/22.
 */
public class CategorySecondServiceImpl implements CategorySecondService {

    CategorySecondDao categorySecondDao = new CategorySecondDaoImpl();

    public List<CategorySecond> findAll() {
        return categorySecondDao.findAll();
    }

    public int insert(CategorySecond categorySecond) {
        return categorySecondDao.insert(categorySecond);
    }

    public CategorySecond findByCSId(String csid) {
        return categorySecondDao.findByCSId(csid);
    }

    public int update(CategorySecond categorySecond) {
        return categorySecondDao.update(categorySecond);
    }

    public int delete(String csid) {
        return categorySecondDao.delete(csid);
    }
}
